package org.example.utils;

import org.example.domain.vo.report.materialStock.TableTitle;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class TableUtil {

//    /**
//     * 根据传入值返回表格标题
//     */
//    public static List<TableTitle> getTableTitle(String supType){
//        if (supType.contains("销售")){
//            return getSaleTableTitle();
//        }
//        return null;
//    }
    
    /**
     * 返回销售出库标题
     */
    public static List<TableTitle> getSaleTableTitle(){
        return new ArrayList<TableTitle>(
                Arrays.asList(
                        new TableTitle(1, "仓库名称", "depotName", ""),
                        new TableTitle(2, "条码", "barCode", ""),
                        new TableTitle(3, "名称", "materialName", ""),
                        new TableTitle(4, "规格", "specs", ""),
                        new TableTitle(5, "型号", "model", ""),
                        new TableTitle(6, "颜色", "color", ""),
                        new TableTitle(7, "库存", "currentNumber", ""),
                        new TableTitle(8, "单位", "unitName", ""),
                        new TableTitle(9, "多属性", "sku", ""),
                        new TableTitle(10, "数量", "operNumber", ""),
                        new TableTitle(11, "单价", "unitPrice", ""),
                        new TableTitle(12, "金额", "allPrice", ""),
                        new TableTitle(13, "税率(%)", "taxRate", ""),
                        new TableTitle(14, "税额", "taxMoney", ""),
                        new TableTitle(15, "价税合计", "taxLastMoney", ""),
                        new TableTitle(16, "重量", "currentWeight", "")
                )
        );
    }
    /**
     * 返回销售订单标题
     */
    public static List<TableTitle> getSaleOrderTableTitle(){
        return new ArrayList<>(
                Arrays.asList(
                        new TableTitle(2, "条码", "barCode", ""),
                        new TableTitle(3, "名称", "materialName", ""),
                        new TableTitle(4, "规格", "specs", ""),
                        new TableTitle(5, "型号", "model", ""),
                        new TableTitle(6, "颜色", "color", ""),
                        new TableTitle(7, "库存", "currentNumber", ""),
                        new TableTitle(8, "单位", "unitName", ""),
                        new TableTitle(9, "多属性", "sku", ""),
                        new TableTitle(10, "数量", "operNumber", ""),
                        new TableTitle(11, "单价", "unitPrice", ""),
                        new TableTitle(12, "金额", "allPrice", ""),
                        new TableTitle(13, "税率(%)", "taxRate", ""),
                        new TableTitle(14, "税额", "taxMoney", ""),
                        new TableTitle(15, "价税合计", "taxLastMoney", ""),
                        new TableTitle(16, "重量", "currentWeight", "")
                )
        );
    }
    
    /**
     * 返回零售出库标题
     */
    public static List<TableTitle> getRetailOrderTableTitle(){
        return new ArrayList<>(
                Arrays.asList(
                        new TableTitle(1, "仓库名称", "depotName", ""),
                        new TableTitle(2, "条码", "barCode", ""),
                        new TableTitle(3, "名称", "materialName", ""),
                        new TableTitle(4, "规格", "specs", ""),
                        new TableTitle(5, "型号", "model", ""),
                        new TableTitle(6, "颜色", "color", ""),
                        new TableTitle(7, "库存", "currentNumber", ""),
                        new TableTitle(8, "单位", "unitName", ""),
                        new TableTitle(9, "多属性", "sku", ""),
                        new TableTitle(10, "数量", "operNumber", ""),
                        new TableTitle(11, "单价", "unitPrice", ""),
                        new TableTitle(12, "金额", "allPrice", ""),
                        new TableTitle(13, "备注", "remark", "")
                )
        );
    }
}
